<table width="100%" border="0" cellpadding="0" cellspacing="0" class="guide">
	<tr>
		<td>
			<span style="float: left;">后台管理中心&nbsp;&raquo;&nbsp;用户管理</span>
			<span style="float: right;">
				<a href="javascript:history.go(-1);">&lt;- 返回</a>
			</span>
		</td>
	</tr>
</table>

<div align="center" style="margin-bottom: 8px;">
	<form action="./?controller=vips" method="POST">
	用户ID
	<input class="input" name="userid" value="<?php echo $this->params['userid']?>" />
	&nbsp;&nbsp;
	<input type="submit" value="查询">
	</form>
</div>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
	<tr class="header">
		<td colspan="9">用户列表</td>
	</tr>
	<tr class="category" align="center">
		<td width="10%">用户ID</td>
		<td width="20%">设备号</td>
		<td width="10%">设备类型</td>
		<td width="10%">用户名</td>
		<td width="10%">昵称</td>
		<td width="10%">v级</td>
		<td width="10%">v币</td>
		<td width="10%">收入</td>
		<td width="10%">操作</td>
	</tr>
<?php
foreach ($this->data as $row)
{
	$machine_type = $row['machine_type'] == 0 ? 'ios' : 'android';
	echo <<<EOF
	<tr>
		<td class="altbg1" align="center">{$row['id']}</td>
		<td class="altbg2" align="center">{$row['token']}</td>
		<td class="altbg1" align="center">{$machine_type}</td>
		<td class="altbg2" align="center">{$row['username']}</td>
		<td class="altbg1" align="center">{$row['nickname']}</td>
		<td class="altbg2" align="center">{$row['level_count']}</td>
		<td class="altbg1" align="center">{$row['money_count']}</td>
		<td class="altbg2" align="center">{$row['income_count']}</td>
		<td class="altbg1" align="center">
		    <a href="./?controller=order&action=index&uid={$row['id']}">订单列表</a><br />
		    <a href="./?controller=vips&action=needslist&uid={$row['id']}">寻租记录</a><br />
		    <a href="./?controller=account&action=account&uid={$row['id']}">转租列表</a><br />
		    <a href="./?controller=vips&action=msglist&uid={$row['id']}">消息记录</a><br />
		    <a href="./?controller=vips&action=vmoney&uid={$row['id']}">V币记录</a><br />
		    <a href="./?controller=vips&action=vlevel&uid={$row['id']}">V级记录</a>
		</td>
	</tr>
EOF;
}
?>
	<tr class="category">
		<td align="center" colspan="9">
			<?php echo $this->paging; ?>
		</td>
	</tr>
</table>
